from django.db import models

# Create your models here.



class ServerModel(models.Model):
    ip = models.CharField(max_length=200,verbose_name='IP地址')
    port = models.CharField(max_length=200,verbose_name='端口号')
    username = models.CharField(max_length=200,verbose_name='用户名')
    password = models.CharField(max_length=200,verbose_name='密码')
    def __str__(self):
        return self.ip

    class Meta:
        verbose_name = '服务器信息'
        verbose_name_plural = '服务器信息'

